package com.cg.service;

import com.cg.dto.AddLikeDTO;
import com.cg.dto.AddNewsDTO;
import com.cg.dto.UpdateNewsDTO;
import com.cg.entity.News;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cg.result.R;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 加
 * @since 2025-01-17
 */
public interface INewsService extends IService<News> {

    String selectContentById(Long newsId);

    R<List<News>> showNews();

    R addLike(AddLikeDTO addLikeDTO);

    R addNews(AddNewsDTO addNewsDTO);

    R deleteNews(Long newsId);

    R updateNews(UpdateNewsDTO updateNewsDTO);
}
